package com.encryption.service;

import java.util.List;

import com.encryption.dao.Condition;
import com.encryption.model.Department;

 

/**
 * 部门管理接口
 * @author 
 *
 */
public interface DepartmentService {
	
	public List<Department> getAll();
	
	/**
	 * 添加部门 
	 * @param Department
	 */
	public boolean addDepartment(Department department);
	
	/**
	 * 编辑部门
	 * @param Department
	 * @return
	 */
	public boolean updateDepartment(Department department);
	
	
	/**
	 * 删除部门
	 * @param id
	 */
	public boolean deleteDepartment(String id);
	
	/**
	 * 查询部门列表
	 * @return
	 */
	public List<Department> getDepartmentByCondition(List<Condition> conditions);
	
	/**
	 * 分页查询部门列表
	 * @param instance
	 * @param page
	 * @return
	 */
	public List<Department> getDepartmentPagingByCondition(List<Condition> condList, int page, int pageSize);
	
	/**
	 * 获取单个部门,根据Departmentid
	 * @param userId
	 * @return
	 */
	public Department getDepartmentById(String id);
	
	 /**
	  * 根据登录名获取部门
	  * @param name
	  */
	public Department getDepartmentByLoginName(String name);			 

	 
}
